import {get,post} from '@/libs/axios'

const distributor = {
    // 分页列表
    page(queryData){
        return get('/distributor/page',queryData)
    },
    // 单条信息
    info(id){
        return get('/distributor/info',{id:id})
    },
    // 保存
    save(formData){
        return post('/distributor/save',formData)
    },
    // 保存状态
    status(id,status){
        return post('/distributor/status',{id:id,status:status})
    },
    // 删除
    del(id){
        return post('/distributor/delete',{id:id})
    }
}

export default distributor
